home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Multimedia / Movie3.0 / Source / mpegDecode / Makefile < prev    next >
Encoding:
Makefile  |  1995-07-31  |  2.4 KB  |  105 lines

  1. # Step 1:
  2. #    Set CC to the C compiler you want to use.  On Sun, gcc 
  3. #    produces faster code.  Your mileage may vary.
  4. #CC            = gcc
  5. CC            = cc
  6.  
  7. # Step 2:
  8. #    Set INCLUDEDIR equal to -I followed by include directory
  9. #    path for X11 include files. 
  10.  
  11. INCLUDEDIR    = /usr/include
  12.  
  13. #
  14. # Step 3:
  15. #    Set CFLAGS.  Below are def's for some machines.  Uncomment the
  16. #    appropriate one or make one of your own. If you want the player
  17. #       to gather statistics about the video stream, add -DANALYSIS to
  18. #       CFLAGS. If you do NOT want to use shared memory, remove 
  19. #       -DSH_MEM from CFLAGS.
  20. #
  21. #
  22. #NeXT C Flags
  23. ARCH=-arch i386 -arch m68k
  24. CFLAGS           = -O -Wall $(ARCH)
  25.  
  26. #
  27. # Step 4:
  28. #    Set LIBS equal to path of libX11.a and libXext.a or the loader
  29. #    flag equivalents (i.e. -lX11 -lXext).
  30. #       If you are NOT using shared memory, libXext.a is unecessary.
  31. #       NOTE: below the default definition are
  32. #             a few definitions for specific architectures.
  33. LIBS          = -lNeXT_s
  34. #LIBS          = /usr/lib/libX11.a /usr/lib/libXext.a
  35.  
  36. #
  37. # Step 5:
  38. #    Set DEST to pathname of final destination of player...
  39. #
  40. DEST          = .
  41.  
  42. #
  43. # That's it!  The rest of this shouldn't need any modifications...
  44. #
  45. EXTHDRS          =
  46.  
  47. HDRS          = util.h video.h decoders.h dither.h
  48.  
  49. INSTALL          = /etc/install
  50.  
  51. LD          = $(CC)
  52.  
  53. LDFLAGS          = $(ARCH)
  54.  
  55. MAKEFILE      = Makefile
  56.  
  57. OBJS          = util.o video.o parseblock.o motionvector.o decoders.o \
  58.         gray.o main.o mono.o jrevdct.o 24bit.o gnext.o
  59.  
  60. PRINT          = pr
  61.  
  62. PROGRAM       = mpegDecode
  63.  
  64. SHELL          = /bin/sh
  65.  
  66. SRCS          = util.c video.c parseblock.c motionvector.c decoders.c \
  67.         gray.c main.c mono.c jrevdct.c 24bit.c gnext.c
  68.  
  69. SYSHDRS          = 
  70.  
  71. all:        $(PROGRAM)
  72.  
  73. $(PROGRAM):    $(OBJS)
  74.         $(LD) $(LDFLAGS) $(OBJS) $(LIBS) -lm -o $(PROGRAM)
  75.  
  76. clean:;        @rm -f *.o core mpegDecode
  77.  
  78. clobber:;    @rm -f $(OBJS) $(PROGRAM) core tags
  79.  
  80. depend:;    @mkmf -f $(MAKEFILE) ROOT=$(ROOT)
  81.  
  82. echo:;        @echo $(HDRS) $(SRCS)
  83.  
  84. index:;        @ctags -wx $(HDRS) $(SRCS)
  85.  
  86. install:    $(PROGRAM)
  87.         @echo Installing $(PROGRAM) in $(DEST)
  88.         @-strip $(PROGRAM)
  89.         @if [ $(DEST) != . ]; then \
  90.         (rm -f $(DEST)/$(PROGRAM); $(INSTALL) -f $(DEST) $(PROGRAM)); fi
  91.  
  92. print:;        @$(PRINT) $(HDRS) $(SRCS)
  93.  
  94. tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
  95.  
  96. update:        $(DEST)/$(PROGRAM)
  97.  
  98. SOURCES=Makefile \
  99.     ANNOUNCE PLATFORMS BUGS README CHANGES VERSION INSTALL \
  100.     proto.h $(HDRS) $(SRCS)
  101.  
  102. tarlist:
  103.     @ls $(SOURCES) | sed 's|^\(.*\)$$|mpegDecode/\1|'
  104.  
  105.